//
//  YDBaseView.m
//  YDRACLearn
//
//  Created by rowena on 2019/1/10.
//  Copyright © 2019年 wuyezhiguhun. All rights reserved.
//

#import "YDBaseView.h"
#import "YDBaseViewModel.h"

@interface YDBaseView()

@property (nonatomic, weak) YDBaseViewModel *viewModel;

@end

@implementation YDBaseView

/**
 * 创建View，添加ViewModel
 * @param viewModel ViewModel
 */
- (instancetype)initWithViewModel:(YDBaseViewModel *)viewModel {
    self = [self init];
    if (self) {
        self.viewModel = viewModel;
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
